package com.gton.service;

import cn.dev33.satoken.util.SaResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gton.entity.AuthLoginUser;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author GuoTong
 * @since 2022-11-27
 */
public interface AuthLoginUserService extends IService<AuthLoginUser> {


    /**
     * Description: 查询用户登录
     *
     * @param name 用户名
     * @param pwd  密码
     * @author: GuoTong
     * @date: 2022-12-04 15:25:34
     * @return:cn.dev33.satoken.util.SaResult
     */
    SaResult queryUserNameAndPassword(String name, String pwd);


    /**
     * Description:  查询用户名是否已经被占用
     *
     * @param username 用户名
     * @author: GuoTong
     * @date: 2022-12-04 15:24:45
     * @return:boolean
     */
    boolean queryUserNameIsExist(String username);
}
